package com.youlu.campus.entity.course;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author : [dengbo]
 * @className : ActivityDeduction
 * @description : [活动扣减]
 * @createTime : [2023/3/21 15:15]
 */
@Data
@Document(collection = "activity_deduction")
public class ActivityDeduction extends EntityBase {
    /**
     * 活动id
     */
    @Indexed
    private String activityId;
    /**
     *  扣减金额 单位分
     */
    private Integer money;
    /**
     *  倒计时时间 单位秒
     */
    private Long time;

}
